﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using YTCMS.Services.Services;

namespace App.Controllers
{
    public class AboutController : Controller
    {
        private readonly IadsService _ads;
        public AboutController(IadsService ads)
        {
            this._ads = ads;
        }
        //
        // GET: /About/
        public ActionResult Index(string code)
        {
            var model = _ads.GetAsync(s => s.Code.Equals(code));
            ViewData["Remark"] = (model == null ? "" : model.Remark);
            return View();
        }
	}
}